package com.eshopkeeper.dao.sys;

import com.eshopkeeper.core.base.BaseMapper;
import com.eshopkeeper.model.sys.StatsData;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

/**
 * Created by louis on 17-4-7.
 */
public interface StatsDataMapper extends BaseMapper<StatsData> {

    /**
     * 查询ID根据map
     * @param params
     * @return
     */
    List<Long> selectIdByMap(Map<String, Object> params);

    List<Long> selectIdsByKeywordForSummary(RowBounds rowBounds, @Param("cm") Map<String, Object> params);

    List<Long> selectIdsByKeywordFromHistory(RowBounds rowBounds, @Param("cm") Map<String, Object> params);

    List<Long> selectIdsByKeywordOnToday(RowBounds rowBounds, @Param("cm") Map<String, Object> params);


}
